MatMult FUNCTION MatMultI% MatMultL% MatMultS% MatMultD% MatMultC% Syntax errcode% = MatMulttype%(matrix1( ), matrix2( ), matrix3( )) Remarks The MatMulttype% procedure performs matrix multiplication of two matrixes. The first matrix must have the same number of columns (n in an m x n matrix) as the number of rows in the second matrix (n in an n x k matrix). The input matrixes contain values whose data type is defined by the last letter in the procedure name (I, L, S, D, or C). The first matrix is multiplied by the second and the product is returned in matrix3( ). The solution matrix contains values of the same data type as the input matrixes. Once the procedure has been performed, the contents of the input matrixes are meaningless. MatMulttype% uses the following arguments. matrix1( ) ---------- A matrix consisting of m x n dimensions. matrix2( ) ---------- A matrix consisting of n x k dimensions. matrix3( ) ---------- Solution matrix consisting of m x k dimensions. A result code is returned that indicates the success or failure of the FUNCTION procedure. Possible result codes are. 0 Normal completion. No error occurred. - 3 Inside dimension not the same. The number of columns in matrix1 is not the same as the number of rows in matrix2. - 5 Dimensions for the solution matrix not correctly declared. The matrix does not have the proper number of rows and columns. Note ---- Matrix division is performed using the MatInvtype% procedure to multiply one matrix by the inverse of the second; that is, A-B = A * Inverse(B).